//
//  TitleTableViewCell.m
//  HYHOME
//
//  Created by cjy on 16/2/29.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "TitleTableViewCell.h"
#import "DKNightVersion.h"
@implementation TitleTableViewCell

- (void)dealloc{

    
    [self.title2 release];
    [super dealloc];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.dk_backgroundColorPicker = DKColorWithRGB(0xffffff, 0x343434);

        self.title2 = [[UILabel alloc]init];
        [self.contentView addSubview:self.title2];
        
        
        
        [self.title2 release];
    }
    
    return self;


}

- (void)layoutSubviews{


    [super layoutSubviews];
    self.title2.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 40);
    
    self.title2.dk_textColorPicker =    DKColorWithRGB(0x343434, 0xb8b8b8);
    


}


- (void)passModel:(NSString *)model
{

    self.title2.text = model;
    self.title2.font = [UIFont boldSystemFontOfSize:16];
    self.title2.textAlignment = NSTextAlignmentCenter;

}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
